c program to count number of character in a strings